// pages/home/minorityDialects/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    minorityLanguageList: [{
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fmiao_language.png",
        title: "苗语"
      }, {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fbu_yi_language.png",
        title: "布依语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fdong_language.png",
        title: "侗语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fshui_language.png",
        title: "水语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fyi_language.png",
        title: "彝语"
      },

      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fshe_yu_language.png",
        title: "畲语"
      },
      //
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fge_lao_language.png",
        title: "仡佬语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fyao_language.png",
        title: "瑶语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fhui_language.png",
        title: "回语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fzhuang_language.png",
        title: "壮语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fmao_nan_language.png",
        title: "毛南语"
      },
      {
        url: "https://qianxing-1311524869.cos.ap-chengdu.myqcloud.com/icon%2Fnation%2Fmore.png",
        title: "更多"
      },
    ]
  },
  getNationData(event) {
    //点击对应区域拿到地区名称
    // console.log(event.currentTarget.dataset.nationflag)
    wx.setStorageSync('nationflag', event.currentTarget.dataset.nationflag)
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {
    wx.removeStorageSync('nationflag')
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})